//////////////////////////////////////////
// Make Figure S7
//////////////////////////////////////////


gl path "~/Dropbox/CovidTurnout/replication"

set scheme plotplain

use "$path/original_data/tx_propensity_analysis.dta", clear
keep if pre_pres==1
collapse voted [fw=obs], by(year pre_mid age_on_election)

twoway (connected voted age if pre_mid==0, mc(gs10) lc(gs10)) ///
	(connected voted age if pre_mid==1, mc(gs4) lc(gs4) ms(Oh)) ///
	if year==2020, xli(64.5, lc(gs2) lp(dash)) ///
	scale(1.2) ///
	text(.82 74 "Midterm Voters") ///
	text(.55 77 "Not Midterm Voters") ///
	xti("Age") yti("Turnout Rate") ///
	legend(off) graphregion(color(white))
graph export "$path/output/propensity2020.pdf", replace


twoway (connected voted age if pre_mid==0, mc(gs10) lc(gs10)) ///
	(connected voted age if pre_mid==1, mc(gs4) lc(gs4)) ///
	if year==2016, xli(64.5, lc(gs2) lp(dash)) ///
	text(.85 74 "Midterm Voters") ///
	text(.35 74 "Not Midterm Voters") ///
	xti("Age") yti("Turnout Rate") ///
	legend(off) graphregion(color(white))
graph export "$path/original_data/propensity2016.pdf", replace
